package Model;

import java.util.ArrayList;

/**
 * Created by xuxingcan on 16-7-21.
 */
public class UserCardModel extends BaseModel {
    private String userName;
    private ArrayList<CardModel> currentCardModels;
    private ArrayList<CardModel> pengCardModels;
    private ArrayList<CardModel> gangCardModels;
    private CardModel handCardModel;

    public UserCardModel(String userName) {
        this.userName = userName;
        this.modelType = BaseModel.TYPE_USER_CARD_MODEL;
    }

    public UserCardModel(String userName, ArrayList<CardModel> currentCardModels) {
        this.userName = userName;
        this.currentCardModels = currentCardModels;
        this.modelType = BaseModel.TYPE_USER_CARD_MODEL;
    }

    public CardModel getHandCardModel() {
        return handCardModel;
    }

    public void setHandCardModel(CardModel handCardModel) {
        this.handCardModel = handCardModel;
    }

    public String getUserName() {
        return userName;
    }

    public void addCurrentCardModels(CardModel model) {
        if (currentCardModels == null) {
            currentCardModels = new ArrayList<>();
        }
        currentCardModels.add(model);
    }

    public void addPengCardModels(CardModel model) {
        if (pengCardModels == null) {
            pengCardModels = new ArrayList<>();
        }
        pengCardModels.add(model);
    }

    public void addGangCardModels(CardModel model) {
        if (gangCardModels == null) {
            gangCardModels = new ArrayList<>();
        }
        gangCardModels.add(model);
    }

    public void setCurrentCardModels(ArrayList<CardModel> currentCardModels) {
        this.currentCardModels = currentCardModels;
    }

    public ArrayList<CardModel> getCurrentCardModels() {
        return currentCardModels;
    }

    public ArrayList<CardModel> getPengCardModels() {
        return pengCardModels;
    }

    public ArrayList<CardModel> getGangCardModels() {
        return gangCardModels;
    }
}